#include <iostream>
#include <thread>
#include "TaskQueue.h"
#include "Producer.h"
#include "Consumer.h"
using std::cout;
using std::endl;
using std::thread;


int main()
{
    TaskQueue que(10);
    Consumer con;
    Producer pro;
    thread th_consume(&Consumer::consume,&con,std::ref(que)); 
    thread th_produce(&Producer::produce,&pro,std::ref(que)); 
    
    th_consume.join();
    th_produce.join();
    return 0;
}

